<?php

use think\facade\Route;

Route::group(function () {
    // 获取用户信息
    Route::get('getUserInfo', 'v1.User/getUserInfo')
        ->setOption('real_name', '获取用户信息');

    // 获取提现挡位
    Route::get('getGear', 'v1.User/getGear')
        ->setOption('real_name', '获取提现挡位');

    // 提现
    Route::post('Withdrawal', 'v1.User/Withdrawal')
        ->setOption('real_name', '提现');

    // 通关
    Route::post('pass', 'v1.User/pass')
        ->setOption('real_name', '通关');

    // 获取激励记录列表
    Route::get('getRewardLog', 'v1.User/getRewardLog')
        ->setOption('real_name', '获取激励记录列表');

    // 是否为低价值用户
    Route::post('isLowValueAdUser', 'v1.User/isLowValueAdUser')
        ->setOption('real_name', '是否为低价值用户');

    // 获取用户提现记录
    Route::get('getUserWithdrawalApply', 'v1.User/getUserWithdrawalApply')
        ->setOption('real_name', '获取用户提现记录');

    // 二次确认提现
    Route::post('wechatTransfer', 'v1.User/wechatTransfer')
        ->setOption('real_name', '二次确认提现');

    // 是否超出观看次数
    Route::post('isExcitation', 'v1.User/isExcitation')
        ->setOption('real_name', '是否超出观看次数');
})->middleware(\app\api\middleware\JwtAuth::class);

// 获取激励记录详情
Route::get('getRewardInfo', 'v1.User/getRewardInfo')
    ->setOption('real_name', '获取激励记录详情');

// 提现回调
Route::Post('notify', 'v1.User/notify')
    ->setOption('real_name', '提现回调');

// 获取配置
Route::get('getConfig', 'v1.User/getConfig')
    ->setOption('real_name', '获取配置');

// 激励回调
Route::get('adCallback', 'v1.User/adCallback')
    ->setOption('real_name', '激励回调');

// 激励回调
Route::get('adCallbackIos', 'v1.User/adCallbackIos')
    ->setOption('real_name', '激励回调IOS');
